package com.qingcloud.api.dcengine.service.fallback;

import com.qingcloud.api.dcengine.dto.TablePageDTO;
import com.qingcloud.api.dcengine.dto.discharge.CommonDischargeDensity;
import com.qingcloud.api.dcengine.model.discharge.DischargeDensityListParam;
import com.qingcloud.api.dcengine.model.discharge.DischargeDensityPageParam;
import com.qingcloud.api.dcengine.service.DischargeApi;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class DischargeFallback implements DischargeApi {

    @Setter
    private Throwable cause;
    @Override
    public List<CommonDischargeDensity> gasHourList(DischargeDensityListParam param) {
        log.error("feign 废气小时数据查询异常{}",cause);
        return null;
    }

    @Override
    public TablePageDTO<CommonDischargeDensity> gasHourPage(DischargeDensityPageParam param) {
        log.error("feign gasHourPage",cause);
        return null;
    }


    @Override
    public List<CommonDischargeDensity> gasDayList(DischargeDensityListParam param) {
        log.error("feign gasDayList",cause);
        return null;
    }

    @Override
    public TablePageDTO<CommonDischargeDensity> gasDayPage(DischargeDensityPageParam param) {
        log.error("feign gasDayPage",cause);
        return null;
    }


    @Override
    public List<CommonDischargeDensity> waterHourList(DischargeDensityListParam param) {
        log.error("feign waterHourList",cause);
        return null;
    }

    @Override
    public TablePageDTO<CommonDischargeDensity> waterHourPage(DischargeDensityPageParam param) {
        log.error("feign waterHourPage",cause);
        return null;
    }

    @Override
    public List<CommonDischargeDensity> waterDayList(DischargeDensityListParam param) {
        log.error("feign waterDayList",cause);
        return null;
    }

    @Override
    public TablePageDTO<CommonDischargeDensity> waterDayPage(DischargeDensityPageParam param) {
        log.error("feign waterDayPage",cause);
        return null;
    }
}
